poem = ["\t\n登鹳雀楼","王之涣\n\t","\n\t白日依山尽","黄河入海流","欲穷千里目","更上一层楼"]

for poem_str in poem:
    #居中对齐
    #print("|%s|" % poem_str.center(10," "))
    #向左对齐
    #print("|%s|" % poem_str.ljust(10, " "))
    #先去除空白字符,向右对齐
    print("|%s|" % poem_str.strip().rjust(10, " "))